package Books;



public class Booklist {
    private static final int NUM_SIZE=10;
    private Book[]books ;
    private int usersize; //有效书籍个数

    public Booklist() {
      this.books=new Book[NUM_SIZE];
      this.books[0]=new Book("认知觉醒","周岭",48,"励志");
      this.books[1]=new Book("傲慢与偏见","简·奥斯汀",38,"励志");
      this.books[2]=new Book("红楼梦","曹雪芹",78,"小说");
      this.usersize=3;
    }


    public int getUsersize() {
        return usersize;
    }
    public void setUsersize(int usersize) {
        this.usersize = usersize;
    }
    public Book getbook(int ps){
        return books[ps];
    }
    public void setbook(int ps, Book book){
        books[ps]=book;
    }

}
